home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / faxmail / mailfax.sh-sendmail < prev    next >
Text File  |  1994-08-01  |  816b  |  24 lines

  1. #! /bin/sh
  2. #
  3. # mailfax - email to fax gateway for sendmail
  4. #
  5. # This file should be installed as /usr/local/bin/mailfax
  6. #
  7. # Edit your sendmail configuration.  Include the following
  8. # mailer definition (or similar):
  9. # Mfax,    P=/usr/local/lib/fax/mailfax, F=DFMhu, M=100000,
  10. #     A=mailfax $u $h $f
  11. # and add the following address rewriting rule to rule set 0:
  12. # # forward FAX messages to FlexFAX software
  13. # R$+<@$+.FAX>        $#fax $@ $2 $: $1        user@host.FAX
  14. #
  15. # Note that the mailfax script must be invoked as either root, daemon, or
  16. # uucp if the from address is to be changed with the -f option to sendfax.
  17. # This is typically the case when sendmail invokes a mailer program and
  18. # the from address identity is different that of the real uid.
  19. #
  20. /usr/local/bin/faxmail | /usr/local/bin/sendfax -n -d "$1@$2" -f "$3"
  21.